#!/usr/bin/python

class WykopRespNotificationType:
    
    def _setData(self, Data):
        
        self.register = Data['register']
        self.observe  = Data['observe']
        self.unobserve = Data['unobserve']
        self.entry_comment_directed = Data['entry_comment_directed']
        self.entry_directed = Data['entry_directed']
        self.group_accepted = Data['group_accepted'] # DEPRECATED
        self.group_rejected = Data['group_rejected'] # DEPRECATED
        self.group_banned = Data['group_banned'] # DEPRECATED
        self.group_request = Data['group_request'] # DEPRECATED
        self.group_invitation = Data['group_invitation'] # DEPRECATED
        self.shoutbox_directed = Data['shoutbox_directed'] # DEPRECATED
        self.link_comment_directed = Data['link_comment_directed']
        self.link_promoted = Data['link_promoted']
        self.link_directed = Data['link_directed']
        self.system = Data['system']
        self.badge = Data['badge']
        self.support_answer = Data['support_answer']
        
        
    def _normalizeData(self, Data):

        Obj = WykopRespNotificationType()
        Obj._setData(Data)
        return Obj
    
    def _normalizeDatatoList(self,Data):
        List = []
        for El in Data:
            Obj = WykopRespNotificationType()
            Obj._setData(El)
            List.append(Obj)
        return List